from ronglian_sms_sdk import SmsSDK


def send_sms_code(mobile, sms_code, time):
    accId = '8a216da878d42502035aa6fb11ed'
    accToken = 'ede5bbe8013049a16d4040b708a0'
    appId = '8a216da878d42535aa7ec11f3'

    sdk = SmsSDK(accId, accToken, appId)

    # 2. 调用发送短信的方法
    tid = '1'  # 只能用模板为 1
    mobile = '{}'.format(mobile)
    datas = (sms_code, time)
    # 我们就不判断发送成功与否了
    sdk.sendMessage(tid, mobile, datas)
